home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / f2c / may_5_92.lha / f2c.VMay_5_1992 / libF77 / system_.c < prev    next >
C/C++ Source or Header  |  1992-05-07  |  281b  |  20 lines

  1. /* f77 interface to system routine */
  2.  
  3. #include "f2c.h"
  4.  
  5.  int
  6. system_(s, n)
  7. register char *s;
  8. ftnlen n;
  9. {
  10. char buff[1000];
  11. register char *bp, *blast;
  12.  
  13. blast = buff + (n < 1000 ? n : 1000);
  14.  
  15. for(bp = buff ; bp<blast && *s!='\0' ; )
  16.     *bp++ = *s++;
  17. *bp = '\0';
  18. return system(buff);
  19. }
  20.